Anthropic Provider Settings
data class AnthropicProviderSettings(val baseURL: String = "https://api.anthropic.com/v1", val apiKey: String? = null, val authToken: String? = null, val headers: Map<String, String> = emptyMap(), val requestHeadersProvider: suspend (url: String, body: String, headers: Map<String, String>) -> Map<String, String>? = null, val buildRequestUrl: (baseURL: String, modelId: String, isStreaming: Boolean) -> String? = null, val transformRequestBody: (modelId: String, body: JsonObject, isStreaming: Boolean) -> JsonObject? = null, val supportedUrls: Map<String, List<String>>? = null, val generateId: () -> String = { ai.torad.aisdk.generateId() }, val name: String = "anthropic.messages")
Constructors
Link copied to clipboard
constructor(baseURL: String = "https://api.anthropic.com/v1", apiKey: String? = null, authToken: String? = null, headers: Map<String, String> = emptyMap(), requestHeadersProvider: suspend (url: String, body: String, headers: Map<String, String>) -> Map<String, String>? = null, buildRequestUrl: (baseURL: String, modelId: String, isStreaming: Boolean) -> String? = null, transformRequestBody: (modelId: String, body: JsonObject, isStreaming: Boolean) -> JsonObject? = null, supportedUrls: Map<String, List<String>>? = null, generateId: () -> String = { ai.torad.aisdk.generateId() }, name: String = "anthropic.messages")